<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<script type="text/javascript">
    $(document).ready(function() {
        // 'DataTablize' the tables
        $("table").dataTable({
            "bPaginate": true,
            "sPaginationType": "full_numbers",
            "bFilter": true,
            "bJQueryUI": true,
            "bAutoWidth": false,
            "aaSorting": [[3,"desc"]]
        });
    });
</script>
<div id="myResults" class="content list">
    <h2>My Results</h2>
    <table cellpadding="0" cellspacing="0" border="0" class="display">
        <thead>
            <tr>
                <th>ID</th>
                <th>Status</th>
                <th>Name</th>
                <th>Time</th>
            </tr>
        </thead>
        <tbody>
            <bean:define id="list" name="resultListForm" property="resultList" />
            <logic:iterate id="result" name="list">
                <tr>
                    <td><bean:write name="result" property="resultID"/></td>
                    <td><bean:write name="result" property="status"/></td>
                    <td><bean:write name="result" property="name"/></td>
                    <td><bean:write name="result" property="time"/></td>
                </tr>
            </logic:iterate>
        </tbody>
    </table>
</div>
